Skip to main content

templateImage

Type

keyword

Summary

Used with the set command to set the properties of newly created images.

Syntax

templateImage

Description

Use the templateImage keyword to set up default properties to be used for any new images objects you create.

The templateImage can be thought of as a special, abstract object. It is not an actual image, but it has all the properties of an image. The ID property of the templateImage is zero.

You can use the set command to set the properties of the templateImage before creating an image. The new image has the properties of the templateImage, by default. Changing the properties of the templateImage does not affect existing images.

The properties of the templateImage can be returned to the default settings using the reset command.

You can refer to the templateImage using any of the following forms:

    templateImage
the templateImage
templateImage()
note

The templateImage keyword is implemented internally as a function and appears in the functionNames. However, it cannot be used as a function in an expression.

Examples

set the dontDither of the templateImage to true

keyword: templateScrollbar, default, image

object: image

property: properties, ID

command: reset, set

control structure: function

function: functionNames

glossary: object, keyword, property, command, expression

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?